package com.android.Android_tp1;

import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;

public class Phonecalls extends Activity {

	    @Override
	    public void onCreate(Bundle savedInstanceState) {
	        super.onCreate(savedInstanceState);
	        setContentView(R.layout.make_call);
	        call();
	    }
	 
	private void call() {
	    try {
	        Intent callIntent = new Intent(Intent.ACTION_CALL);
	        callIntent.setData(Uri.parse("tel:0033640109841"));
	        startActivity(callIntent);
	    } catch (ActivityNotFoundException activityException)
	         {
	                Throwable e = null;
					Log.e("helloandroid dialing example", "Call failed", e);
	    }
	}
}	 

